package cn.xn.hrms.infrastructure.dao;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xn.hrms.api.dto.res.PersonalRewardDTO;

/**
 * @author ysz
 */
public interface PersonalRewardDao {

    int insertSelective(PersonalRewardDTO record);

    PersonalRewardDTO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PersonalRewardDTO record);

    List<PersonalRewardDTO> selectAll(@Param("year") int year, @Param("month") int month,
                                      @Param("departmentId") Integer departmentId , @Param("personalId") int personalId);
    int updateIsDeletedByIdIn(@Param("updatedIsDeleted") Integer updatedIsDeleted, @Param("idCollection") Collection<Integer> idCollection);

}
